namespace Calculator2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            double x = Double.Parse(textBox1.Text);
            double y = Double.Parse(textBox2.Text);
            char op = Char.Parse(comboBox1.Text);
            double result = 0;
            switch (op) {
                case '+':result = x + y;break;
                case '-': result = x - y; break;
                case '*': result = x * y; break;
                case '/': result = x / y; break;
                default:  break;
            }
            textBox3.Text = result.ToString();

        }

        private void label2_Click(object sender, EventArgs e)
        {

        }
    }
}